<div class="content">
	<h1>New Job</h1>


	<?php echo $this->Form->create(false, array('type' => 'post','enctype'=>'multipart/form-data','action'=>'add'));?>
	<table id="job_form">
		<tfoot>
			<tr>
				<td colspan="2"><input type="submit" value="Preview your job"></td>
			</tr>
		</tfoot>
		<tbody>
			<tr>
				<th><label>Job name</label>
				</th>
				<td><?php echo $this->Form->input('Job.name', array('label'=>''));	?></td>
			</tr>
			<tr>
				<th><label>User</label>
				</th>
				<td><?php echo $this->Form->select('Job.user_id',$users,array('id'=>'job_user_id','value'=>2));	?></td>
			</tr>
			<tr>
				<th><label>Category</label>
				</th>
				<td><?php echo $this->Form->select('Job.category_id]',$catagories, array('id'=>'job_category_id','value'=>1));	?>
				</td>
			</tr>
			<tr>
				<th><label for="job_type">Type</label>
				</th>
				<td><ul class="radio_list">
						<li><input type="radio" checked="checked" id="job_type_full-time"
							value="full-time" name="data[Job][type]">&nbsp;<label
							for="job_type_full-time">Full time</label></li>
						<li><input type="radio" id="job_type_part-time" value="part-time"
							name="data[Job][type]">&nbsp;<label for="job_type_part-time">Part
								time</label>
						</li>
						<li><input type="radio" id="job_type_freelance" value="freelance"
							name="data[Job][type]">&nbsp;<label for="job_type_freelance">Freelance</label>
						</li>
					</ul>
				</td>
			</tr>
			<tr>
				<th><label for="job_company">Company</label>
				</th>
				<td><?php echo $this->Form->input(' ', array('name'=>'data[Job][company]','id'=>'job_company','label'=>null));?>
				</td>
			</tr>
			<tr>
				<th><label for="job_logo">Company logo</label>
				</th>
				<td><?php echo $this->Form->input(' ', array('type'=>'file','name'=>'data[Job][logo]','id'=>'job_logo','label'=>null));?>
				</td>
			</tr>
			<tr>
				<th><label for="job_url">Url</label>
				</th>
				<td><?php echo $this->Form->input(' ', array('type'=>'text','name'=>'data[Job][logo]','id'=>'job_logo','label'=>null));?>
				</td>
			</tr>
			<tr>
				<th><label for="job_position">Position</label>
				</th>
				<td><?php echo $this->Form->input(' ', array('type'=>'text','name'=>'data[Job][position]','id'=>'job_position','label'=>null));?>
				</td>
			</tr>
			<tr>
				<th><label for="job_location">Location</label>
				</th>
				<td><?php echo $this->Form->input(' ', array('type'=>'text','name'=>'data[Job][location]','id'=>'job_location','label'=>null));?>
				</td>
			</tr>
			<tr>
				<th><label for="job_description">Description</label>
				</th>
				<td><?php echo $this->Form->textarea(' ',array('name'=>'data[Job][description]','row'=>4,'id'=>'job_description','cols'=>30));?>
				</td>
			</tr>
			<tr>
				<th><label for="job_how_to_apply">How to apply?</label>
				</th>
				<td><?php echo $this->Form->textarea(' ',array('name'=>'data[Job][description]','row'=>4,'id'=>'job_description','cols'=>30));?>
				</td>
			</tr>
			<tr>
				<th><label for="job_is_public">Public?</label>
				</th>
				<td><?php echo $this->Form->input(' ', array('type'=>'checkbox','checked'=>'checked','name'=>'data[Job][is_public]','id'=>'job_is_public','label'=>null));?>
					<br>Whether the job can also be published on affiliate websites or
					not.</td>
			</tr>
			<tr>
				<th><label for="job_email">Email</label>
				</th>
				<td><?php echo $this->Form->input(' ', array('type'=>'text','checked'=>'checked','name'=>'data[Job][email]','id'=>'job_email','label'=>null));?>
					<input type="hidden" id="job_id" name="job[id]">
				</td>
			</tr>
		</tbody>
	</table>
	<?php echo $this->Form->end();?>
</div>
